package phoenics.manpads.common.mybatis;

import org.apache.ibatis.reflection.factory.DefaultObjectFactory;
import phoenics.manpads.common.mybatis.page.Page;

/**
 * @author Phoenics Chow
 * on 2018年12月10日
 */
public class MyObjectFactory extends DefaultObjectFactory {
    private static org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(MyObjectFactory.class);
    public <T> T create(Class<T> type) {
              return super.create(type);
    }
    @Override
    public <T> boolean isCollection(Class<T> type) {
        if(type.isAssignableFrom(Page.class)){
            return true;
        }
        return super.isCollection(type);
    }
}
